#define _CRT_SECURE_NO_WARNINGS 1
#include "string.h"

void test1()
{
	wu::string s1("holle world");
	wu::string s2("china");
	wu::string s3(s1);
	const wu::string s4("holle world");

	//s1[0]++;
	//s1.Print();
	//s3.Print();

	//s1 = s2;
	//print(s1);
	//cout << s4.c_str() << endl;
	//cout << s2.c_str() << endl;

	//cout << (s4 == s1) << endl;
	//cout << (s2 == s1) << endl;
	//cout << (s2 >= s1) << endl;
	//cout << (s2 <= s1) << endl;

	//s2.push_back('N');
	//s2.push_back('N');
	//s2.push_back('N');
	//print(s2);
	//s2.append("abcd");
	//s2.append("xxxx");
	//print(s2);
	
	/*s2.insert(1, "yyy");
	cout << s2.c_str() << endl;
	s2.insert(0, "mm");
	cout << s2.c_str() << endl;*/

}

void test2()
{
	wu::string s1("abcd");
	//s1.insert(0, 'o');
	//s1.insert(1, 'x');
	//print(s1);

	s1.insert(0, "holle ");
	cout << s1 << endl;

	s1.insert(4, "nihao");
	cout << s1 << endl;

	s1.erase(0, 5);
	cout << s1 << endl;

	s1.erase(2, 2);
	cout << s1 << endl;

	s1.erase(3, 1);
	cout << s1 << endl;
	//print(s1);
	wu::string s2("china!");
	/*s2.push_back('h');
	s2.append("xxxx");
	cout << s2;*/
	/*cout << s1 << " " << s2 << endl;*/
	
	/*wu::string s3;
	cin >> s2;
	cout << s2 << endl;*/
}
int main()
{
	test2();
	//string s("a");
	//s.reserve(100);
	//s.push_back('x');
	//cout << s.c_str() << endl;
	return 0;
}